package com.nt.project.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 梦魂
 * @since 2025-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ConDeviceInventory extends Model<ConDeviceInventory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "device_code", type = IdType.ASSIGN_ID)
    private String deviceCode;

    /**
     * 入箱数量
     */
    private Integer onNum;

    /**
     * 取货数量
     */
    private Integer offNum;

    /**
     * 库存重量
     */
    private BigDecimal weight;


    @Override
    protected Serializable pkVal() {
        return this.deviceCode;
    }

}
